<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>百顺通云-个人应用</title>
	<link rel="shortcut icon" href="/images/user/favicon.png" type="image/x-icon">
    <link type="text/css" rel="stylesheet" href="/css/user/global.css" />
    <link type="text/css" rel="stylesheet" href="/css/user/img_turn.css" />
    <link type="text/css" rel="stylesheet" href="/css/user/mall/gryy.css">
    <link type="text/css" rel="stylesheet" href="/css/dialog.css" />
    <script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src = "/js/dialog.min.js"></script>
	<script type="text/javascript" src = "/js/bstdialog.min.js"></script>
    <script type="text/javascript" src="/js/user/mall/bxCarousel.js"></script>
    <script src="/js/slides.min.jquery.js"></script>
    <script src="/js/user/mall/gryy.js"></script>
    <script src="/js/user/img_turn.js"></script>
</head>

<body>
<input type="hidden" id="page" value="${page}"/>
<input type="hidden" id="pageCount" value="${pageCount}"/>
<input type="hidden" id="mealId" value="${mealId}"/>
<!--页面内容开始-->
<div class="Wrapper">
  <!-----------------------页面头部及导航部分开始------------------->
  <jsp:include page="../common/header.jsp"/>
  <!---------------------------------页面头部及导航部分结束------------------------------------>
  <div class="cl"></div>
  	<!---------------------------------内容部分------------------------------------>
  	<div class="content">
  		<!---------------------------------左侧------------------------------------>
   	  	<div class="main-l fl">
        	<!--左侧列表-->
			<div class="list">
            	<ul>
                	<li><a href="/mall">首页推荐</a></li>
                    <c:forEach items="${meals}" var="m" varStatus="status">
          	  			<c:choose>
          	  				<c:when test="${status.last}">
          	  					<li><a href="${m.mealUrl}" title="${m.mealName}" class="last">${m.mealName}</a></li>
          	  				</c:when>
          	  				<c:otherwise>
          	  					<li><a href="${m.mealUrl}" title="${m.mealName}">${m.mealName}</a></li>
          	  				</c:otherwise>
          	  			</c:choose>
          	  		</c:forEach>
                </ul>
            </div>
            <!--左侧列表结束-->
            
            <jsp:include page="../common/left.jsp"/>
      	</div>
    	<!---------------------------------左侧结束------------------------------------>
    	<!---------------------------------右侧------------------------------------>
    	<div class="main-r fr">
        	<!---------------------------------轮播------------------------------------>
            <jsp:include page="../common/img_turn.jsp"/>
            <!---------------------------------轮播结束------------------------------------>
            <!--右侧搜索-->
            <div class="main-r-search mt20">
            	<div class="label01 fl mr20">
                	<select name="select" id="industry" class="search-text">
                        <option onfocus="this.style.color='#999'" onblur="this.style.color='#999'" value="">行业</option>
                        <c:forEach items="${industries}" var="i">
                        	<option onfocus="this.style.color='#999'" onblur="this.style.color='#999'" value="${i.industryId}">${i.industryName}</option>
                        </c:forEach>
                    </select>
            	</div>
                <div class="label01 fl mr20">
                	<select name="select" id="product_category" class="search-text">
                        <option onfocus="this.style.color='#999'" onblur="this.style.color='#999'" value="">类别</option>
                    	<c:forEach items="${productCategories}" var="pc">
                    		 <option onfocus="this.style.color='#999'" onblur="this.style.color='#999'" value="${pc.productCategoryId}">${pc.productCategoryName}</option>
                    	</c:forEach>
                    </select>
            	</div>
                <div class="label02 fl">
                	<input type="text" name="textfield2" id="textfield2" value="关键字" class="search-text2 w235 fl" onfocus="if(this.value=='关键字') this.value='';this.style.color='#999'" onblur="if(this.value=='') {this.value='关键字';this.style.color='#999'}" />
                    <a href="javascript:void(0);" class="btn fl" onclick="javascript:gryyReload(1);"></a>
                </div>
                <div class="cl"></div>
            </div>
            <!--右侧搜索结束-->
            <!--右侧个人应用部分开始-->
            <div class="gryy tubiao mt20">
            	<div class="lm-t">已添加了 <span id="gryyNum">${totalRows}</span> 个应用<font>添加个人应用，让功能用起来更随意</font></div>
                <div class="box" id="gryy">
                	<c:forEach items="${mpVo}" var="mp" varStatus="status">
                    	<c:choose>
                    		<c:when test="${status.index > 1 }">
                    			<div class="layout fl mt20">
		                           <div class="pic fl mr20">
		                               <a href="/mall/gryy/${mp.productId}">
		                                   <img src="${mp.productImg}" width="75" height="75" />
		                               </a>
		                           </div>
		                           <dl class="fl">
		                               <dt><a href="/mall/gryy/${mp.productId}">${mp.productName}</a>
		                               </dt>
		                               <dd>
		                                   <font class="red">报价：￥${mp.productPrice}</font></dd>
		                               <dd>${mp.productBrief}</dd>
		                           </dl>
		                           <div class="kt-btn"><a href="/mall/gryy/${mp.productId}" class="fr">购买</a>
		                           </div>
		                           <div class="cl"></div>
		                       </div>
                    		</c:when>
                    		<c:otherwise>
                    			<div class="layout fl">
		                      		<div class="pic fl mr20">
		                               <a href="/mall/gryy/${mp.productId}">
		                                   <img src="${mp.productImg}" width="75" height="75" />
		                               </a>
		                         		</div>
		                           <dl class="fl">
		                               <dt><a href="/mall/gryy/${mp.productId}">${mp.productName}</a>
		                               </dt>
		                               <dd>
		                                   <font class="red">报价：￥${mp.productPrice}</font></dd>
		                               <dd>${mp.productBrief}</dd>
		                           </dl>
		                           <div class="kt-btn"><a href="/mall/gryy/${mp.productId}" class="fr">购买</a>
		                           </div>
		                           <div class="cl"></div>
		                      	</div>
                    		</c:otherwise>
                    	</c:choose>
                    </c:forEach>
                	
                	<%-- <ul>
                    	<c:forEach items="${mpVo}" var="mp">
                    		<li>
                    			<a href="/mall/cpxq/${mp.productId}" class="img"><img src="${mp.productImg}" width="82" height="82" /></a>
                    			<h2><a href="/mall/cpxq/${mp.productId}">${mp.productName}</a></h2>
                    		</li>
                    	</c:forEach>
                    	<!-- <li><a href="yunbgsw.html" class="img"><img src="/images/temp/yy01.png" width="82" height="82" /></a><h2><a href="#">一元夺宝</a></h2></li>-->
                    </ul> --%>
                    <div class="cl"></div>
                    
                    <div class="page mt20" align="center">共${totalRows}条记录 ${page}/${pageCount}页&nbsp;
			          <a href="javascript:gryyReload(1)">首页</a> <a onclick="javascript:ajaxPageUp(${page})">上一页</a>&nbsp;
			          <a onclick="javascript:ajaxPageDown(${page});">下一页</a> 
			          <a href="javascript:gryyReload(${pageCount})" >尾页</a>&nbsp; 第&nbsp;
			          <select onchange="ajax2Page()" id="currPage">
			              <c:forEach begin="1" end="${pageCount}" varStatus="status">
			            	<option value="${status.index}" <c:if test="${status.index == page}">selected="selected"</c:if>>${status.index}</option>
			              </c:forEach>
			          </select>&nbsp;页
			        </div>
                </div>
            </div>
            <!--右侧个人应用部分结束-->
      	</div>
    	<!---------------------------------右侧结束------------------------------------>
        <div class="cl"></div>
  	</div>
  	<!---------------------------------内容部分结束------------------------------------>
  	<!---------------------------------footer------------------------------------>
  	<jsp:include page="../common/footer.jsp"/>
  	<!---------------------------------footer结束------------------------------------>  
</div>
<!--页面内容结束-->
</body>
</html>
